package cn.edu.pku.ss.situationperceiver;

import org.alljoyn.bus.annotation.Position;

public class ContextMessage {
	/**
	 * This class defines the form of context in sharing process.
	 * ContextData + MetaData 
	 */

	@Position(0)
	public ContextData contextData;	//revise to this form in May 30, 2013

	@Position(1)
	public DeviceIdentifier senderID;
	
	@Position(2)
	public DeviceIdentifier recipientID;
	

	
	public ContextMessage(ContextData contextData, DeviceIdentifier senderID,
			DeviceIdentifier recipientID) {
		super();
		this.contextData = contextData;
		this.senderID = senderID;
		this.recipientID = recipientID;
	}
	
	public ContextData getContextData() {
		return contextData;
	}
	public void setContextData(ContextData contextData) {
		this.contextData = contextData;
	}
	public DeviceIdentifier getSenderID() {
		return senderID;
	}
	public void setSenderID(DeviceIdentifier senderID) {
		this.senderID = senderID;
	}
	public DeviceIdentifier getRecipientID() {
		return recipientID;
	}
	public void setRecipientID(DeviceIdentifier recipientID) {
		this.recipientID = recipientID;
	}
	
	
	
	
	
}
